/*
 * @Author: heatcodes 2416616287@qq.com
 * @Date: 2022-09-23 22:09:38
 * @LastEditors: heatcodes 2416616287@qq.com
 * @LastEditTime: 2022-09-23 22:20:04
 * @FilePath: /Boss/vue2-boss/src/router/index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

export default new VueRouter({
    mode: 'history',
    routes: [
        {
            path: '*',
            redirect: '/login',
            component: () => import('@/pages/login')
        },
        {
            name: 'login',
            path: '/login',
            component: () => import('@/pages/login')
        },
        {
            name: 'home',
            path: '/home',
            component: () => import('@/pages/home')
        },
    ]
})